import request from '../axios'

/**
 * 会员详情
 */
export function info(data) {
    return request({
        url: 'member/info',
        method: 'get',
        params: data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 用户积分记录
 */
export function scoreLog(data) {
    return request({
        url: '/member/scoreLog',
        method: 'get',
        params: data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 银行卡列表
 */
export function bankCardList(data) {
    return request({
        url: '/member/bankCardList',
        method: 'get',
        params: data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 添加银行卡
 */
export function addBankCard(data) {
    return request({
        url: '/member/addBankCard',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}
